Replaced the device handling mechanism used by XendDomainInfo. Superficially,
authoremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 14:41:28 +0000 (15:41 +0100)
committeremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 14:41:28 +0000 (15:41 +0100)
commit27b7ea09e07a8836ed990f81473dd097f542575a
treebe76a82a9b1ae8489db337dafcdd3525f9f8a5d8
parentc353c7fdd0591c8ddc51b95abe3e755878c7c2a1
Replaced the device handling mechanism used by XendDomainInfo.  Superficially,
this looks like the resurrection of DevController from controller.py, but the
mechanism is actually very different.  Device handling is now stateless inside
xend, relying on the store for state management, reducing DevController
instances to one-shot lifetimes.  Dev and its subclasses have gone completely.
The device creation code itself has moved from XendDomainInfo.createDevice into
DevController subclasses, and the previous contents of the subclasses has been
discarded (these subclasses were no longer being called, so all this code was
dead).

XendDomainInfo.getDeviceIds has gone, as it was unused.
XendDomainInfo.delete_device has been subsumed by XendDomainInfo.destroyDevice;
since device handling is now stateless inside xend, the distinction between
device 'deletion' and device 'destruction' is meaningless.

The s-expression describing devices has gone, as this information is no longer
available to xend in the same way, and seems to be unused.  If it is required,
it can be reinstated by loading device information from Xen or the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/DevController.py [new file with mode: 0644]
tools/python/xen/xend/server/blkif.py
tools/python/xen/xend/server/controller.py [deleted file]
tools/python/xen/xend/server/netif.py
tools/python/xen/xend/server/pciif.py
tools/python/xen/xend/server/tpmif.py
tools/python/xen/xend/server/usbif.py